import { Collapse } from 'antd';

const { Panel } = Collapse;
export const AxCollapse = props => {
  const { children, defaultActiveKey = [], ...rest } = props;
  return (
    <Collapse defaultActiveKey={defaultActiveKey} {...rest}>
      {children}
    </Collapse>
  );
};

export const AxPanel = props => {
  const { children, ...rest } = props;
  return <Panel {...rest}>{children}</Panel>;
};
